package com.aliyun.messagemgt.dto.vo.weixin;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @Author: Xiaohang Lv
 * @Date: 2019/5/15 16:39
 */
public class WeixinImageSendModelVO extends WeixinSendModelVO {
    private Image image;

    public WeixinImageSendModelVO() {
        super.setMsgtype("image");
        image = new Image();
    }

    public WeixinImageSendModelVO setMediaId(String mediaId) {
        image.mediaId = mediaId;
        return this;
    }

    public Image getImage() {
        return image;
    }

    public WeixinImageSendModelVO setImage(Image image) {
        this.image = image;
        return this;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    static class Image {
        private String mediaId;

        public String getMediaId() {
            return mediaId;
        }

        public Image setMediaId(String mediaId) {
            this.mediaId = mediaId;
            return this;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }
    }
}
